<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>万朗 2350300097</title>
</head>
<body>

<%
    String username = request.getParameter("username");
    String userpwd = request.getParameter("userpwd");
    if (username.equals("wl") && userpwd.equals("123456")) {
%>

<font size="7" color="red">
    欢迎光临山外山书店!!
</font>

<%
    } else {
        String error = "用户名或密码不正确！";
        request.setAttribute("error", error);
        request.getRequestDispatcher("index.jsp").forward(request, response);
    }
%>

</body>
</html>
